<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true"
    CodeFile="Checkout.aspx.cs" Inherits="Checkout" %>

<asp:Content ID="cphMain" ContentPlaceHolderID="cphZone1" runat="Server">
    <asp:ValidationSummary runat="server" id="vsumCheckout" HeaderText="&lt;b&gt;&amp;nbsp;There were some problems with your entries:&lt;/b&gt;" />
        <p class="sectionTitle">Order Details</p>
        <asp:GridView ID="gvShoppingCart" runat="server" AutoGenerateColumns="False" 
                ShowFooter="true" SkinID="Cart" Width="100%" 
                onrowdatabound="gvShoppingCart_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderText="Item Number">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblItemNumber" Text='<%# Eval("ItemNumber") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Title">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblProductTitle" Text='<%# Eval("ProductTitle") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Each">
                <HeaderStyle HorizontalAlign="Left" />
                <ItemStyle HorizontalAlign="Left" />
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblUnitPrice" Text='<%# Eval("UnitPrice", "{0:c}") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Qty.">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblQuantity" Text='<%# Eval("Quantity") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Total">
                <HeaderStyle HorizontalAlign="Right" />
                <ItemStyle HorizontalAlign="Right" />
                <FooterStyle HorizontalAlign="Right" />
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblTotal" Text='<%# Eval("Total", "{0:c}") %>'></asp:Label>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:Label runat="server" ID="lblGrandTotal" Font-Bold="true"></asp:Label>
                </FooterTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:Wizard ID="wizCheckout" runat="server" ActiveStepIndex="0" DisplaySideBar="False"
        OnNextButtonClick="wizCheckout_NextButtonClick" FinishCompleteButtonText="Submit"
        OnFinishButtonClick="wizCheckout_FinishButtonClick" SkinID="Checkout" 
        Width="100%">
        <StartNavigationTemplate>
            <asp:Button ID="StartNextButton" runat="server" CommandName="MoveNext" 
                Text="Continue" />
        </StartNavigationTemplate>
        <WizardSteps>
            <asp:WizardStep ID="stShipping" runat="server" Title="Shipping">
                <p class="sectionTitle">Shipping Address</p>
                <table>
                <tr>
                    <td class="label">*Company:</td>
                    <td><asp:TextBox runat="server" ID="txtShipToCompany" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvShipToCompanyName" runat="server" ControlToValidate="txtShipToCompany"
                                ErrorMessage="Company name is required." ToolTip="Company name is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*First name:</td>
                    <td><asp:TextBox runat="server" ID="txtShipToFName" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvShipToFName" runat="server" ControlToValidate="txtShipToFName"
                                ErrorMessage="First name is required." ToolTip="First name is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*Last name:</td>
                    <td><asp:TextBox runat="server" ID="txtShipToLName" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvShipToLName" runat="server" ControlToValidate="txtShipToLName"
                                ErrorMessage="Last name is required." ToolTip="Last name is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*Address 1:</td>
                    <td><asp:TextBox runat="server" ID="txtShipToAddress1" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvShipToAddress1" runat="server" ControlToValidate="txtShipToAddress1"
                                ErrorMessage="Address is required." ToolTip="Address is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">Address 2:</td>
                    <td><asp:TextBox runat="server" ID="txtShipToAddress2" Width="150px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="label">*City:</td>
                    <td><asp:TextBox runat="server" ID="txtShipToCity" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvShipToCity" runat="server" ControlToValidate="txtShipToCity"
                                ErrorMessage="City is required." ToolTip="City is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*State:</td>
                    <td><asp:DropDownList ID="lstShipToState" runat="server" Width="150px">
                                <asp:ListItem Value="">State</asp:ListItem>
                                <asp:ListItem Value="AL">Alabama</asp:ListItem>
                                <asp:ListItem Value="AK">Alaska</asp:ListItem>
                                <asp:ListItem Value="AZ">Arizona</asp:ListItem>
                                <asp:ListItem Value="AR">Arkansas</asp:ListItem>
                                <asp:ListItem Value="CA">California</asp:ListItem>
                                <asp:ListItem Value="CO">Colorado</asp:ListItem>
                                <asp:ListItem Value="CT">Connecticut</asp:ListItem>
                                <asp:ListItem Value="DC">District of Columbia</asp:ListItem>
                                <asp:ListItem Value="DE">Delaware</asp:ListItem>
                                <asp:ListItem Value="FL">Florida</asp:ListItem>
                                <asp:ListItem Value="GA">Georgia</asp:ListItem>
                                <asp:ListItem Value="HI">Hawaii</asp:ListItem>
                                <asp:ListItem Value="ID">Idaho</asp:ListItem>
                                <asp:ListItem Value="IL">Illinois</asp:ListItem>
                                <asp:ListItem Value="IN">Indiana</asp:ListItem>
                                <asp:ListItem Value="IA">Iowa</asp:ListItem>
                                <asp:ListItem Value="KS">Kansas</asp:ListItem>
                                <asp:ListItem Value="KY">Kentucky</asp:ListItem>
                                <asp:ListItem Value="LA">Louisiana</asp:ListItem>
                                <asp:ListItem Value="ME">Maine</asp:ListItem>
                                <asp:ListItem Value="MD">Maryland</asp:ListItem>
                                <asp:ListItem Value="MA">Massachusetts</asp:ListItem>
                                <asp:ListItem Value="MI">Michigan</asp:ListItem>
                                <asp:ListItem Value="MN">Minnesota</asp:ListItem>
                                <asp:ListItem Value="MS">Mississippi</asp:ListItem>
                                <asp:ListItem Value="MO">Missouri</asp:ListItem>
                                <asp:ListItem Value="MT">Montana</asp:ListItem>
                                <asp:ListItem Value="NE">Nebraska</asp:ListItem>
                                <asp:ListItem Value="NV">Nevada</asp:ListItem>
                                <asp:ListItem Value="NH">New Hampshire</asp:ListItem>
                                <asp:ListItem Value="NJ">New Jersey</asp:ListItem>
                                <asp:ListItem Value="NM">New Mexico</asp:ListItem>
                                <asp:ListItem Value="NY">New York</asp:ListItem>
                                <asp:ListItem Value="NC">North Carolina</asp:ListItem>
                                <asp:ListItem Value="ND">North Dakota</asp:ListItem>
                                <asp:ListItem Value="OH">Ohio</asp:ListItem>
                                <asp:ListItem Value="OK">Oklahoma</asp:ListItem>
                                <asp:ListItem Value="OR">Oregon</asp:ListItem>
                                <asp:ListItem Value="PA">Pennsylvania</asp:ListItem>
                                <asp:ListItem Value="RI">Rhode Island</asp:ListItem>
                                <asp:ListItem Value="SC">South Carolina</asp:ListItem>
                                <asp:ListItem Value="SD">South Dakota</asp:ListItem>
                                <asp:ListItem Value="TN">Tennessee</asp:ListItem>
                                <asp:ListItem Value="TX">Texas</asp:ListItem>
                                <asp:ListItem Value="UT">Utah</asp:ListItem>
                                <asp:ListItem Value="VT">Vermont</asp:ListItem>
                                <asp:ListItem Value="VA">Virginia</asp:ListItem>
                                <asp:ListItem Value="WA">Washington</asp:ListItem>
                                <asp:ListItem Value="WV">West Virginia</asp:ListItem>
                                <asp:ListItem Value="WI">Wisconsin</asp:ListItem>
                                <asp:ListItem Value="WY">Wyoming</asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rfvShipToState" runat="server" 
                                ControlToValidate="lstShipToState" ErrorMessage="State is required." ToolTip="State is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*Zip:</td>
                    <td><asp:TextBox runat="server" ID="txtShipToZip" Width="100px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvShipZipCode" runat="server" ControlToValidate="txtShipToZip"
                                Display="Dynamic" ErrorMessage="Zip code is required." ToolTip="Zip code is required.">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revShipToZip" runat="server" ControlToValidate="txtShipToZip"
                                Display="Dynamic" ErrorMessage="Invalid zip code." ValidationExpression="\d{5}(-\d{4})?" ToolTip="Invalid zip code.">&nbsp;</asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td class="label">*Daytime phone:</td>
                    <td><asp:TextBox runat="server" ID="txtShipToPhone" Width="100px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvShipToPhone" runat="server" ControlToValidate="txtShipToPhone"
                                Display="Dynamic" ErrorMessage="Phone number is required." ToolTip="Phone number is required.">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revShipToPhone" runat="server" ControlToValidate="txtShipToPhone"
                                Display="Dynamic" ErrorMessage="Invalid phone number." ToolTip="Invalid phone number." ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}">&nbsp;</asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td class="label">*E-mail address:</td>
                    <td><asp:TextBox runat="server" ID="txtShipToEmail" Width="175px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvShipToEmail" runat="server" ControlToValidate="txtShipToEmail"
                                Display="Dynamic" ErrorMessage="Email address is required." ToolTip="Email address is required.">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revShipToEmail" runat="server" ControlToValidate="txtShipToEmail"
                                Display="Dynamic" ErrorMessage="Invalid email address." ToolTip="Invalid email address." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">&nbsp;</asp:RegularExpressionValidator></td>
                </tr>
                </table>
                <p class="sectionTitle">Shipping Method</p>
                <table>
                <tr>
                <td class="labelBold">Select shipping method:</td>
                </tr>
                <tr>
                   <td><asp:DropDownList runat="server" ID="lstShippingMethod">
                    <asp:ListItem Text="UPS Ground" Value="0"></asp:ListItem>
                    <asp:ListItem Text="UPS 2nd Day" Value="1"></asp:ListItem>
                    <asp:ListItem Text="UPS Next Day" Value="2"></asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvShippingMethod" runat="server" ControlToValidate="lstShippingMethod"
                    ErrorMessage="Shipping method is required." ToolTip="Shipping method is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                </table>
                <br />
                <span class="label">Shipping cost will be applied to total after checkout. etc...</span>
            </asp:WizardStep>
            <asp:WizardStep ID="stBilling" runat="server" Title="Billing">
                <p class="sectionTitle">Billing Address</p>
                <asp:CheckBox runat="server" ID="chkSameAsShipping" CssClass="labelBold" Text="Same as shipping?"
                    Checked="true" AutoPostBack="True" OnCheckedChanged="chkSameAsShipping_CheckedChanged" /><br /><br />
                <table>
                <tr>
                    <td class="label">*Company:</td>
                    <td><asp:TextBox runat="server" ID="txtBillToCompany" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvBillToCompany" runat="server" ControlToValidate="txtBillToCompany"
                                ErrorMessage="Company name is required." ToolTip="Company name is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*First Name:</td>
                    <td><asp:TextBox runat="server" ID="txtBillToFName" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvBillToFName" runat="server" ControlToValidate="txtBillToFName"
                                ErrorMessage="First name is required." ToolTip="First name is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*Last Name:</td>
                    <td><asp:TextBox runat="server" ID="txtBillToLName" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvBillToLName" runat="server" ControlToValidate="txtBillToLName"
                                ErrorMessage="Last name is required." ToolTip="Last name is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*Address 1:</td>
                    <td><asp:TextBox runat="server" ID="txtBillToAddress1" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvBillToAddress1" runat="server" ControlToValidate="txtBillToAddress1"
                                ErrorMessage="Address is required." ToolTip="Address is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">Address 2:</td>
                    <td><asp:TextBox runat="server" ID="txtBillToAddress2" Width="150px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td class="label">*City:</td>
                    <td><asp:TextBox runat="server" ID="txtBillToCity" Width="150px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvBillToCity" runat="server" ControlToValidate="txtBillToCity"
                                ErrorMessage="City is required." ToolTip="City is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*State:</td>
                    <td><asp:DropDownList ID="lstBillToState" runat="server" Width="150px">
                                <asp:ListItem Value="">State</asp:ListItem>
                                <asp:ListItem Value="AL">Alabama</asp:ListItem>
                                <asp:ListItem Value="AK">Alaska</asp:ListItem>
                                <asp:ListItem Value="AZ">Arizona</asp:ListItem>
                                <asp:ListItem Value="AR">Arkansas</asp:ListItem>
                                <asp:ListItem Value="CA">California</asp:ListItem>
                                <asp:ListItem Value="CO">Colorado</asp:ListItem>
                                <asp:ListItem Value="CT">Connecticut</asp:ListItem>
                                <asp:ListItem Value="DC">District of Columbia</asp:ListItem>
                                <asp:ListItem Value="DE">Delaware</asp:ListItem>
                                <asp:ListItem Value="FL">Florida</asp:ListItem>
                                <asp:ListItem Value="GA">Georgia</asp:ListItem>
                                <asp:ListItem Value="HI">Hawaii</asp:ListItem>
                                <asp:ListItem Value="ID">Idaho</asp:ListItem>
                                <asp:ListItem Value="IL">Illinois</asp:ListItem>
                                <asp:ListItem Value="IN">Indiana</asp:ListItem>
                                <asp:ListItem Value="IA">Iowa</asp:ListItem>
                                <asp:ListItem Value="KS">Kansas</asp:ListItem>
                                <asp:ListItem Value="KY">Kentucky</asp:ListItem>
                                <asp:ListItem Value="LA">Louisiana</asp:ListItem>
                                <asp:ListItem Value="ME">Maine</asp:ListItem>
                                <asp:ListItem Value="MD">Maryland</asp:ListItem>
                                <asp:ListItem Value="MA">Massachusetts</asp:ListItem>
                                <asp:ListItem Value="MI">Michigan</asp:ListItem>
                                <asp:ListItem Value="MN">Minnesota</asp:ListItem>
                                <asp:ListItem Value="MS">Mississippi</asp:ListItem>
                                <asp:ListItem Value="MO">Missouri</asp:ListItem>
                                <asp:ListItem Value="MT">Montana</asp:ListItem>
                                <asp:ListItem Value="NE">Nebraska</asp:ListItem>
                                <asp:ListItem Value="NV">Nevada</asp:ListItem>
                                <asp:ListItem Value="NH">New Hampshire</asp:ListItem>
                                <asp:ListItem Value="NJ">New Jersey</asp:ListItem>
                                <asp:ListItem Value="NM">New Mexico</asp:ListItem>
                                <asp:ListItem Value="NY">New York</asp:ListItem>
                                <asp:ListItem Value="NC">North Carolina</asp:ListItem>
                                <asp:ListItem Value="ND">North Dakota</asp:ListItem>
                                <asp:ListItem Value="OH">Ohio</asp:ListItem>
                                <asp:ListItem Value="OK">Oklahoma</asp:ListItem>
                                <asp:ListItem Value="OR">Oregon</asp:ListItem>
                                <asp:ListItem Value="PA">Pennsylvania</asp:ListItem>
                                <asp:ListItem Value="RI">Rhode Island</asp:ListItem>
                                <asp:ListItem Value="SC">South Carolina</asp:ListItem>
                                <asp:ListItem Value="SD">South Dakota</asp:ListItem>
                                <asp:ListItem Value="TN">Tennessee</asp:ListItem>
                                <asp:ListItem Value="TX">Texas</asp:ListItem>
                                <asp:ListItem Value="UT">Utah</asp:ListItem>
                                <asp:ListItem Value="VT">Vermont</asp:ListItem>
                                <asp:ListItem Value="VA">Virginia</asp:ListItem>
                                <asp:ListItem Value="WA">Washington</asp:ListItem>
                                <asp:ListItem Value="WV">West Virginia</asp:ListItem>
                                <asp:ListItem Value="WI">Wisconsin</asp:ListItem>
                                <asp:ListItem Value="WY">Wyoming</asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rfvBillToState" runat="server" 
                                ControlToValidate="lstBillToState" ErrorMessage="State is required." ToolTip="State is required.">&nbsp;</asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td class="label">*Zip:</td>
                    <td><asp:TextBox runat="server" ID="txtBillToZip" Width="100px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvZipCode" runat="server" ControlToValidate="txtBillToZip"
                                Display="Dynamic" ErrorMessage="Zip code is required." ToolTip="Zip code is required.">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revBillToZip" runat="server" ControlToValidate="txtBillToZip"
                                Display="Dynamic" ErrorMessage="Invalid zip code." ToolTip="Invalid zip code." ValidationExpression="\d{5}(-\d{4})?">&nbsp;</asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td class="label">*Daytime Phone:</td>
                    <td><asp:TextBox runat="server" ID="txtBillToPhone" Width="100px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvBillToPhone" runat="server" ControlToValidate="txtBillToPhone"
                                Display="Dynamic" ErrorMessage="Phone number is required." ToolTip="Phone number is required.">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revBillToPhone" runat="server" ControlToValidate="txtBillToPhone"
                                Display="Dynamic" ErrorMessage="Invalid phone number." ToolTip="Invalid phone number." ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}">&nbsp;</asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td class="label">*E-mail Address:</td>
                    <td><asp:TextBox runat="server" ID="txtBillToEmail" Width="175px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvBillToEmail" runat="server" ControlToValidate="txtBillToEmail"
                                Display="Dynamic" ErrorMessage="Email address required." ToolTip="Email address is required.">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revBillToEmail" runat="server" ControlToValidate="txtBillToEmail"
                                Display="Dynamic" ErrorMessage="Invalid email address." ToolTip="Invalid email address." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">&nbsp;</asp:RegularExpressionValidator></td>
                </tr>
                </table>
            </asp:WizardStep>
            <asp:WizardStep ID="stPaymentDetails" runat="server" Title="Payment Details">
                <p class="sectionTitle">Shipping Information</p>
                <table>
                    <tr>
                        <td class="labelBold">
                            Shipping Address
                        </td>
                        <td style="width: 100px"></td>
                        <td class="labelBold">
                            Shipping Method
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label runat="server" ID="lblShippingAddressInfo"></asp:Label>
                        </td>
                        <td></td>
                        <td valign="top">
                            <asp:Label runat="server" ID="lblShippingMethod"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td></td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:LinkButton runat="server" ID="lblEditShipping" Text="Edit" OnClick="lblEditShipping_Click"
                                CausesValidation="False"></asp:LinkButton>
                        </td>
                        <td></td>
                        <td>
                        </td>
                    </tr>
                </table>
                <p class="sectionTitle">Billing Information</p>
                <table>
                    <tr>
                        <td class="labelBold">
                            Billing Address
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label runat="server" ID="lblBillingAddressInfo"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:LinkButton runat="server" ID="lnkbtnEditBilling" Text="Edit" OnClick="lnkbtnEditBilling_Click"
                                CausesValidation="False"></asp:LinkButton>
                        </td>
                    </tr>
                </table>
                <p class="sectionTitle">Payment Details</p>
                <table>
                    <tr>
                        <td class="label">
                            Name on card:
                        </td>
                        <td>
                            <asp:TextBox ID="txtNameOnCard" runat="server" Width="180px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtNameOnCard"
                                ErrorMessage="Name is required." ToolTip="Name is required.">&nbsp;</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Card type:
                        </td>
                        <td>
                            <asp:DropDownList ID="lstPaymentMethods" runat="server">
                                <asp:ListItem Value="0">Visa</asp:ListItem>
                                <asp:ListItem Value="1">Mastercard</asp:ListItem>
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rfvCardType" runat="server" ControlToValidate="lstPaymentMethods"
                                ErrorMessage="Card type is required." ToolTip="Card type is required.">&nbsp;</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Card number:
                        </td>
                        <td>
                            <asp:TextBox runat="server" ID="txtCardNumber" Width="154px"></asp:TextBox>&nbsp;<asp:RequiredFieldValidator
                                ID="rfvCardNumber" runat="server" ControlToValidate="txtCardNumber" Display="Dynamic"
                                ErrorMessage="Card number is required." ToolTip="Card number is required.">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="revCardNumber" runat="server" ControlToValidate="txtCardNumber"
                                Display="Dynamic" ErrorMessage="Invalid card number." 
                                ValidationExpression="^(\d{4}[- ]){3}\d{4}|\d{16}$" ToolTip="Invalid card number.">&nbsp;</asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            Expiration:
                        </td>
                        <td>
                            <asp:DropDownList runat="server" ID="lstExpirationMonth">
                                <asp:ListItem Selected="True" Value="">Month</asp:ListItem>
                                <asp:ListItem Value="01">01 - January</asp:ListItem>
                                <asp:ListItem Value="02">02 - February</asp:ListItem>
                                <asp:ListItem Value="03">03 - March</asp:ListItem>
                                <asp:ListItem Value="04">04 - April</asp:ListItem>
                                <asp:ListItem Value="05">05 - May</asp:ListItem>
                                <asp:ListItem Value="06">06 - June</asp:ListItem>
                                <asp:ListItem Value="07">07 - July</asp:ListItem>
                                <asp:ListItem Value="08">08 - August</asp:ListItem>
                                <asp:ListItem Value="09">09 - September</asp:ListItem>
                                <asp:ListItem Value="10">10 - October</asp:ListItem>
                                <asp:ListItem Value="11">11 - November</asp:ListItem>
                                <asp:ListItem Value="12">12 - December</asp:ListItem>
                            </asp:DropDownList>
                            &nbsp;<asp:DropDownList runat="server" ID="lstExpirationYear">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rfvExpirationMonth" runat="server" ControlToValidate="lstExpirationMonth"
                                Display="Dynamic" ErrorMessage="Expiration month is required." ToolTip="Expiration month is required.">&nbsp;</asp:RequiredFieldValidator>
                            <asp:RequiredFieldValidator ID="rfvExpirationYear" runat="server" ControlToValidate="lstExpirationYear"
                                Display="Dynamic" ErrorMessage="Expiration year is required." ToolTip="Expiration year is required.">&nbsp;</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                </table>
            </asp:WizardStep>
        </WizardSteps>
        <FinishNavigationTemplate>
            <asp:Button ID="FinishPreviousButton" runat="server" CausesValidation="False" 
                CommandName="MovePrevious" Text="Back" />
            <asp:Button ID="FinishButton" runat="server" CommandName="MoveComplete" 
                Text="Submit Order" />
        </FinishNavigationTemplate>
        <StepNavigationTemplate>
            <asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" 
                CommandName="MovePrevious" Text="Back" />
            <asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" 
                Text="Continue" />
        </StepNavigationTemplate>
    </asp:Wizard>
</asp:Content>
